package com.wxisme.ssm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;

import com.wxisme.ssm.mapper.UserMapper;
import com.wxisme.ssm.po.User;
import com.wxisme.ssm.service.UserService;

/**
 *用户管理service
 *@author wxisme
 *@time 2015-8-19 下午6:54:07
 */

public class UserServiceImpl implements UserService {
	
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public User findUserById(int id) throws Exception {
		
		return userMapper.findUserById(id);
	}
	
	
	@Override
	public void changePassword(User user) throws Exception {
		userMapper.changePassword(user);
	}
	
	
	@Override
	public String selectPassword(String username) throws Exception {
		return userMapper.selectPassword(username);
	}

}
